using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace BaseData.Models.Mapping
{
    public class Web_Base_Config_GlobalMap : EntityTypeConfiguration<Web_Base_Config_Global>
    {
        public Web_Base_Config_GlobalMap()
        {
            // Primary Key
            this.HasKey(t => t.PkId);

            // Properties
            // Table & Column Mappings
            this.ToTable("Web_Base_Config_Global");
            this.Property(t => t.PkId).HasColumnName("PkId");
            this.Property(t => t.SiteId).HasColumnName("SiteId");
            this.Property(t => t.TemplateHome).HasColumnName("TemplateHome");
            this.Property(t => t.TemplateIndex).HasColumnName("TemplateIndex");
            this.Property(t => t.TemplateNode).HasColumnName("TemplateNode");
            this.Property(t => t.TemplateList).HasColumnName("TemplateList");
            this.Property(t => t.TemplateView).HasColumnName("TemplateView");
            this.Property(t => t.TemplateSeek).HasColumnName("TemplateSeek");
            this.Property(t => t.TemplateTop).HasColumnName("TemplateTop");
            this.Property(t => t.flagStatus).HasColumnName("flagStatus");
        }
    }
}
